package com.coding.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * place
 * @author 
 */
public class Place implements Serializable {
    private Integer place_id;

    private Integer place_poem_way_id;

    private Integer place_main_place_id;

    private Integer place_video_id;

    private Integer place_imageid;

    private String place_name;

    private String place_content;

    private String place_intro;

    private String place_tag;

    private String place_more1;

    private String place_more2;

    private OssImages ossImages;
    private Location location;

    private static final long serialVersionUID = 1L;

    public Integer getPlace_id() {
        return place_id;
    }

    public void setPlace_id(Integer place_id) {
        this.place_id = place_id;
    }

    public Integer getPlace_poem_way_id() {
        return place_poem_way_id;
    }

    public void setPlace_poem_way_id(Integer place_poem_way_id) {
        this.place_poem_way_id = place_poem_way_id;
    }

    public Integer getPlace_main_place_id() {
        return place_main_place_id;
    }

    public void setPlace_main_place_id(Integer place_main_place_id) {
        this.place_main_place_id = place_main_place_id;
    }

    public Integer getPlace_video_id() {
        return place_video_id;
    }

    public void setPlace_video_id(Integer place_video_id) {
        this.place_video_id = place_video_id;
    }

    public Integer getPlace_imageid() {
        return place_imageid;
    }

    public void setPlace_imageid(Integer place_imageid) {
        this.place_imageid = place_imageid;
    }

    public String getPlace_name() {
        return place_name;
    }

    public void setPlace_name(String place_name) {
        this.place_name = place_name;
    }

    public String getPlace_content() {
        return place_content;
    }

    public void setPlace_content(String place_content) {
        this.place_content = place_content;
    }

    public String getPlace_intro() {
        return place_intro;
    }

    public void setPlace_intro(String place_intro) {
        this.place_intro = place_intro;
    }

    public String getPlace_tag() {
        return place_tag;
    }

    public void setPlace_tag(String place_tag) {
        this.place_tag = place_tag;
    }

    public String getPlace_more1() {
        return place_more1;
    }

    public void setPlace_more1(String place_more1) {
        this.place_more1 = place_more1;
    }

    public String getPlace_more2() {
        return place_more2;
    }

    public void setPlace_more2(String place_more2) {
        this.place_more2 = place_more2;
    }

    public OssImages getOssImages() {
        return ossImages;
    }

    public void setOssImages(OssImages ossImages) {
        this.ossImages = ossImages;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Place place = (Place) o;
        return Objects.equals(place_id, place.place_id) &&
                Objects.equals(place_poem_way_id, place.place_poem_way_id) &&
                Objects.equals(place_main_place_id, place.place_main_place_id) &&
                Objects.equals(place_video_id, place.place_video_id) &&
                Objects.equals(place_imageid, place.place_imageid) &&
                Objects.equals(place_name, place.place_name) &&
                Objects.equals(place_content, place.place_content) &&
                Objects.equals(place_intro, place.place_intro) &&
                Objects.equals(place_tag, place.place_tag) &&
                Objects.equals(place_more1, place.place_more1) &&
                Objects.equals(place_more2, place.place_more2) &&
                Objects.equals(ossImages, place.ossImages) &&
                Objects.equals(location, place.location);
    }

    @Override
    public int hashCode() {
        return Objects.hash(place_id, place_poem_way_id, place_main_place_id, place_video_id, place_imageid, place_name, place_content, place_intro, place_tag, place_more1, place_more2, ossImages, location);
    }

    @Override
    public String toString() {
        return "Place{" +
                "place_id=" + place_id +
                ", place_poem_way_id=" + place_poem_way_id +
                ", place_main_place_id=" + place_main_place_id +
                ", place_video_id=" + place_video_id +
                ", place_imageid=" + place_imageid +
                ", place_name='" + place_name + '\'' +
                ", place_content='" + place_content + '\'' +
                ", place_intro='" + place_intro + '\'' +
                ", place_tag='" + place_tag + '\'' +
                ", place_more1='" + place_more1 + '\'' +
                ", place_more2='" + place_more2 + '\'' +
                ", ossImages=" + ossImages +
                ", location=" + location +
                '}';
    }
}